﻿
@{
    ViewBag.Title = "SystemRoleAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}

@section css {
    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <style>
        .table-bordered td {
            text-align: center;
        }
    </style>
}
<div class="page-content" ng-cloak ng-controller="OrganizationController" ng-init="page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';
     Id='@(Request.QueryString["Id"].IsEmpty() ? "0" : Request.QueryString["Id"])';
    PageLoading = false;
    LoadingMsg='加载中,请稍后...';
     GetUserInfo(Id);
          ">
    <div class="load" ng-show="PageLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />

			</path>
		</svg>
            <div class="load-msg">{{LoadingMsg}}</div>
        </div>
    </div>
    <div class="page-heading">
        <h1>添加用户</h1>
        <div class="options">
            <div class="btn-toolbar">
            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li><a>主页</a></li>
        <li><a>系统设置</a></li>
        <li><a>组织架构</a></li>
        <li><a>用户管理</a></li>
        <li class="active"><a>添加用户</a></li>
    </ol>

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading"><h2>添加用户</h2></div>
                    <div class="panel-body">
                        <form class="form-horizontal row-border">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">工号</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="UserEditModel.UserNo" disabled>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">姓名</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="UserEditModel.UserName">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">部门</label>
                                <div class="col-sm-8">
                                    <select id="Dep_Select" class="selectpicker show-tick form-control" ng-model="UserEditModel.DepartmentId" ng-change="refreshOption('Dep_Select');" data-live-search="true">
                                        <option value="0">请选择部门</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="UserEditModel.Email">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">联系方式</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="UserEditModel.Phone">
                                </div>
                            </div>
                        </form>
                        <div class="panel-footer">
                            <div class="row">
                                <div class="col-sm-8 col-sm-offset-2">
                                    <button class="btn-primary btn" ng-click="EditUser(UserEditModel,page);">保存</button>
                                    <a href="UserList?page={{page}}" class="btn-default btn">取消</a>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

@section Js{
    <script src="~/Assets/js/pg/Organization.js"></script>
    <script src="~/Assets/js/libs/moment.min.js"></script>
    <script src="~/Assets/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Assets/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Assets/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Assets/js/libs/fileinput.js"></script>
    <script src="~/Assets/js/libs/zh.js"></script>
}

